package com.obelisco.vista.componentes;

import java.util.ResourceBundle;

import org.springframework.core.io.Resource;

import nextapp.echo2.app.ApplicationInstance;
import nextapp.echo2.app.event.ActionEvent;
import nextapp.echo2.app.event.ActionListener;

public class DialogoAyuda {

	private static ResourceBundle resourceBundle = ResourceBundle.getBundle(
			"com.obelisco.exception.errores",
			ApplicationInstance.getActive().getLocale());
	
	private static DialogoMensaje dialogo;
	
	private static int ancho = 600;
	private static int alto = 500;
	
	private static ActionListener manejoDialogo = new ActionListener() {

		public void actionPerformed(ActionEvent arg0) {
			// TODO Auto-generated method stub
			dialogo.salir();
		}
		
	};
	
    public static DialogoMensaje mostrar(String titulo, String mensaje) {
    	dialogo = new DialogoMensaje(titulo,mensaje,TipoDialogo.INFORMACION,BotonesDialogo.OK, manejoDialogo);
    	dialogo.mostrarDialogo(DialogoAyuda.ancho, DialogoAyuda.alto);    	
    	return dialogo;

    }
	

}
